package com.szrt.java.day20161229.demo01;
//Teacher int age int salary
public class Student {
	int height;
	
	public void setHeight(int h){
		height =h;
	}
	
	public int getHeight(){
		return height;
	}
	
	public static void main(String[] args) {
		//如何使用1个类来造1个对象?  
		//1 new
		//2 new 后面接的是一个具体的类 
		//3 对象后面接一对()  ...
		Student liuhao= new Student();
		liuhao.setHeight(180);
		int hh =liuhao.getHeight();
		System.out.println(hh);
		
	}
}
